package JavaCode;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @Author Kechelle
 * @Date 2020/9/22 20:27
 * @Version 1.0
 */
public class TestTwo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        List<Integer> list = new ArrayList<>();
        int count1=0;
        int count2=0;
        int x;
        for (int i=0;i<num;i++){
            for (int j=0;j<3;j++){
                x = scanner.nextInt();
                list.add(x);
            }
        }
        for (int res:list){
            if (res == 1) count1++;
            if (res == 2) count2++;
        }
        if (count1%2 != 0 || count2%2!=0){
            System.out.println("error");
        }
    }

}
